from openpyxl import Workbook


def opexecl(datas):
    workbook = Workbook()
    # 默认sheet
    sheet = workbook.active
    sheet.title = "keys"
    sheet.append(["文件地址", "行数", "非法字符", "原因", "类型", "标记", "当前行"])
    for data in datas:
        sheet.append(data)

    workbook.save('pvuv_openpyxl.xlsx')